package com.zzyl.nursing.job;

import com.zzyl.nursing.mapper.AlertDataMapper;
import com.zzyl.nursing.service.IReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import com.zzyl.nursing.service.IContractService;
import com.zzyl.nursing.service.IReservationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ReservationJob {
    @Autowired
    private IReservationService reservationService;
    /**
     * 设置预约超过时间自动取消
     */
    public void autoCancel(){
        log.info("开始执行自动取消预约任务");
        reservationService.autoCancel();
    }
}
